package cn.hongwei.controller.api;


import cn.hongwei.entity.form.MemberRegistForm;
import cn.hongwei.result.R;
import cn.hongwei.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author atguigu
 * @since 2021-07-09
 */
@RestController
@CrossOrigin
@RequestMapping("/api/ucenter/member")
public class ApiMemberController {
    @Autowired
    MemberService memberService;
    //1、注册
    @PostMapping("regist")
    public R register(@RequestBody MemberRegistForm member){
        memberService.saveMember(member);
        return R.ok();
    }

}

